package 装饰者.饮料里随便加调料;

public class Client {
    public static void main(String[] args) {
        Drink coffee = new Coffee();// coffee是Coffee对象
        coffee = new Milk(coffee);// coffee是Milk对象
        coffee = new Soy(coffee); // coffee 是Soy对象

        System.out.println(coffee.cost());
        /*
                Coffee.getPrice() + mike.getPrice() + soy.getPrice()
         */



    }
}
